﻿@model IrisMembership.Web.ViewModels.RegisterModel
@using NgVal;
<div ng-controller="RegisterController">
    <form name="registerForm" ng-submit="registerUser()" novalidate>
        <div class="row">
            <div class="col-md-6">
                <div class="form-group input-group">
                    <span class="input-group-addon"><i class="fa fa-user fa-fw"></i></span>
                    <input type="text" name="UserName" id="UserName" class="form-control input-sm" ng-model="user.userName" placeholder="UserName">
                </div>
            </div>
            <div class="col-md-6">
                <div class="form-group input-group">
                    <span class="input-group-addon"><i class="fa fa-user fa-fw"></i></span>
                    <input type="text" name="last_name" id="last_name" ng-model="user.name" class="form-control input-sm" placeholder="Last Name">
                </div>
            </div>
        </div>

        <div class="row">
            <div class="col-md-12">
                <div class="form-group input-group">
                    <span class="input-group-addon"><i class="fa fa-envelope-o fa-fw"></i></span>
                    <input type="email" name="email" id="email" class="form-control input-sm" ng-model="user.email" placeholder="Email Address">
                </div>
            </div>
        </div>

        <div class="row">
            <div class="col-md-6">
                <div class="form-group input-group">
                    <span class="input-group-addon"><i class="fa fa-key fa-fw"></i></span>
                    <input type="password" name="password" id="password" class="form-control input-sm" ng-model="user.password" placeholder="کلمه عبور">
                </div>
            </div>
            <div class="col-md-6">
                <div class="form-group input-group">
                    <span class="input-group-addon"><i class="fa fa-key fa-fw"></i></span>
                    <input type="password" name="confirmPassword" id="confirmPassword" class="form-control input-sm" ng-model="user.confirmPassword" password-match="password" placeholder="تکرار کلمه عبور">
                </div>
            </div>
        </div>
        <button type="submit" ng-disabled="registerForm.$invalid" class="btn btn-success btn-block">ثبت نام</button>
    </form>
</div>